using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using LAMSDK.Log.Entities;

namespace LAMSDK.Log.Mapping
{
    public class LogMap : EntityTypeConfiguration<LAMSDK.Log.Entities.Log>
	{
		public LogMap()
		{
			// Primary Key
			this.HasKey(t => t.Id);

            //// Properties
            //this.Property(t => t.Path)
            //    .HasMaxLength(500);
				
            //this.Property(t => t.Comment)
            //    .HasMaxLength(500);
				
            //// Table & Column Mappings
            //this.ToTable("ErrorLog");
            //this.Property(t => t.Id).HasColumnName("LogId");
            //this.Property(t => t.Path).HasColumnName("Path");
            //this.Property(t => t.Comment).HasColumnName("Comment");
            //this.Property(t => t.CreateDate).HasColumnName("CreateDate");
		}
	}
}

